﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true"
    CodeBehind="ThanhToan.aspx.cs" Inherits="SES.CMS.ThanhToan" Title="Untitled Page" %>

<%@ Register Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit" TagPrefix="cc" %>
<%@ Register Src="~/Module/ucDanhMuc.ascx" TagName="ucDanhMuc" TagPrefix="uc1" %>
<%@ Register Src="~/Module/ucLeftMenu.ascx" TagName="ucLeftMenu" TagPrefix="uc2" %>
<%@ Register Src="~/Module/ucBreadcrumb.ascx" TagName="ucBreadcrumb" TagPrefix="uc3" %>
<%@ Register Src="~/Module/ucImageLeft.ascx" TagName="ucImageLeft" TagPrefix="uc5" %>



<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="/css/kmmaProduct1.css" type="text/css" rel="Stylesheet" />
    <style type="text/css">
        #RegisterForm
        {
            border: 1px solid #ccc;
            padding: 15px 5px;
            margin: 5px -6px 5px 0px;
            
        }
        .done
        {
            background: url("images/done.png" ) no-repeat;
            width: 101px;
            height: 31px;
            border: none;
        }
        .dTTTT
        {
            margin: 5px -6px 5px 0px;
            border: 1px solid #ccc;
            padding: 15px 5px;
        }
        .sp_info_detai
        {
            float: left;
            padding: 0 0 0 0px;
            width: 110px;
        }
        .button3
        {
            margin-left: 30px;
        }
        .button
        {
            height: 26px;
        }
        .info_detail
        {
        	list-style-type:none;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="NoiDung">
        <div class="left-menu1">
            <uc2:ucLeftMenu ID="ucLeftMenu" runat="server"></uc2:ucLeftMenu>
            <uc1:ucDanhMuc ID="ucDanhMuc" runat="server" />
            <uc5:ucImageLeft ID="ucImageLeft" runat="server"></uc5:ucImageLeft>
        </div>
        <div class="PriContent" style="margin-left: 10px; width: 700px;">
            <uc3:ucBreadcrumb id="ucBreadcrumb" runat="server"></uc3:ucBreadcrumb>
            <div id="">
                <h3 style="margin-bottom: 20px; margin-top: 0px; padding-top: 0px; text-align: left;">
                    <asp:Literal runat="server" Text="<%$ Resources:Language, vThongTinGioHang%>"></asp:Literal></h3>
                <asp:Label ID="lbl" runat="server"></asp:Label>
               <asp:GridView runat="server" ID="GridGioHang" AutoGenerateColumns="False" EmptyDataText="Không có dữ liệu !"
                        AllowPaging="True" CellPadding="2" Width="700px" BackColor="White" BorderColor="#DFE5E9" BorderStyle="Solid"
                        BorderWidth="1px" OnRowDataBound="GridGioHang_RowDataBound" DataKeyNames="STT">
                        <RowStyle BackColor="White" VerticalAlign="Middle" ForeColor="#330099" />
                        <Columns>
                            <asp:TemplateField HeaderText="STT" ItemStyle-Width="16px">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lbSTT" Text="<%# Container.DataItemIndex + 1 %>">
                                    </asp:Label>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Top" />
                            </asp:TemplateField>
                              <asp:TemplateField HeaderText="<%$ Resources:Language, vAnhSP%>" ItemStyle-Width="65px">
                                <ItemTemplate>
                                    <a class="fackybox" href="/Media/<%#Eval("HinhAnh")%>" />
                                    <img src="/Media/<%#Eval("HinhAnh")%>" height="47px" width="47px" style=" margin:10px; border:1px solid #DFE5E9; padding:2px;" alt="<%#DataBinder.Eval(Container.DataItem,"TenSanPham") %>" />
                                    </a>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="<%$ Resources:Language, vTenSP%>" ItemStyle-Width="180px">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="txtTen" Text='<%#DataBinder.Eval(Container.DataItem,"TenSanPham") %>'>
                                    </asp:Label>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Left" Font-Bold="true" VerticalAlign="Middle" />
                            </asp:TemplateField>
                          
                            <asp:TemplateField HeaderText="<%$ Resources:Language, vSLg%>" ItemStyle-Width="50px">
                                <ItemTemplate>
                                    <%#DataBinder.Eval(Container.DataItem,"SoLuong") %>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="<%$ Resources:Language, vDonGia%>" ItemStyle-HorizontalAlign="Center"
                                ItemStyle-Width="90px">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lbDG" Text='<%#DataBinder.Eval(Container.DataItem,"DonGia") %>'>
                                    </asp:Label>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="<%$ Resources:Language, vGiamGia%>" ItemStyle-HorizontalAlign="Center"
                                ItemStyle-Width="70px">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lbDGG" Text='<%#Eval("GiamGia") +"%" %>'>
                                    </asp:Label>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="<%$ Resources:Language, vThanhTien%>" ItemStyle-HorizontalAlign="Center"
                                ItemStyle-Width="110px">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lbThanhTien" Font-Bold="true" Text='<%#DataBinder.Eval(Container.DataItem,"ThanhTien") %>'>
                                    </asp:Label>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:TemplateField>
                            
                        </Columns>
                        <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                        <HeaderStyle HorizontalAlign="Center" Height="30px" BackColor="#EAEEF0" VerticalAlign="Middle" Font-Bold="True" ForeColor="#000"  />
                    </asp:GridView>
                    
                <br />
                <div style="width: 400px; margin-left: auto; margin-right: 10px; text-align: right;">
                    <asp:Label ID="lblSum" runat="server"></asp:Label><br />
                    <asp:Label ID="lbThanhTien" runat="server"></asp:Label>
                </div>
                <div align="center" style="margin-top: 15px;" class="ltr">
                </div>
                <div id="RegisterForm">
                    <h3 style="margin-bottom: 20px; margin-top: 0px; padding-top: 0px; text-align: left;">
                        <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Language, vThongTinThanhToan%>"></asp:Literal></h3>
                    <ul class="append_info">
                        <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                            padding-right: 5px;"></span><asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Language, vHoTen%>"></asp:Literal>
                             </span> <span class="info_result">
                            </span>
                            <asp:TextBox runat="server" ID="txtHT" CssClass="ip_info_result" type="text" TabIndex="1"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtHT"
                                ErrorMessage="(*)"></asp:RequiredFieldValidator>
                        </li>
                        <!--END DIV gender-->
                        <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                            padding-right: 5px;"></span><asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Language, vDiaChi%>"></asp:Literal></span> <span class="info_result">
                            </span>
                            <asp:TextBox runat="server" ID="txtDC" CssClass="ip_info_result" type="text" TabIndex="2"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtDC"
                                ErrorMessage="(*)"></asp:RequiredFieldValidator>
                        </li>
                        <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                            padding-right: 5px;"></span><asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Language, vSDT%>"></asp:Literal> </span> <span
                                class="info_result"></span>
                            <asp:TextBox runat="server" ID="txtsdt" CssClass="ip_info_result" type="text" TabIndex="3"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtsdt"
                                ErrorMessage="(*)"></asp:RequiredFieldValidator>
                        </li>
                        <!--END DIV gender-->
                        <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                            padding-right: 5px;"></span><asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Language, vEmail%>"></asp:Literal></span> <span class="info_result">
                            </span>
                            <asp:TextBox runat="server" ID="txtEmail" CssClass="ip_info_result" type="text" TabIndex="4"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtEmail"
                                ErrorMessage="(*)"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Sai định dạng email"
                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txtEmail"></asp:RegularExpressionValidator>
                        </li>
                        <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                            padding-right: 5px;"></span><asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Language, vKieuThanhToan%>"></asp:Literal> </span>
                            <span class="info_result"></span>
                            <asp:TextBox runat="server" ID="txtHTTT" CssClass="ip_info_result" type="text" TabIndex="5"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtHTTT"
                                ErrorMessage="(*)"></asp:RequiredFieldValidator>
                        </li>
                        <!--END DIV gender-->
                        <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                            padding-right: 5px;"></span><asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Language, vDiaChiGH%>"></asp:Literal></span>
                            <span class="info_result"></span>
                            <asp:TextBox runat="server" ID="txtDCGH" CssClass="ip_info_result" type="text" TabIndex="6"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtDCGH"
                                ErrorMessage="(*)"></asp:RequiredFieldValidator>
                        </li>
                        <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                            padding-right: 5px;"></span><asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Language, vGhiChu%>"></asp:Literal></span> <span class="info_result">
                            </span>
                            <asp:TextBox runat="server" ID="txtGC" CssClass="ip_info_result" type="text" TabIndex="7" Width="500px"
                                Height="100px" TextMode="MultiLine"></asp:TextBox>
                        </li>
                        <li class="info_detail"><span class="sp_info_detai"><span style="font-size: 9px;
                            padding-right: 5px;"></span><asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Language, vNgayGH%>"></asp:Literal></span> <span
                                class="info_result"></span>
                            <asp:TextBox runat="server" ID="txtNgayGiaoHang" CssClass="ip_info_result" type="text"
                                TabIndex="8"></asp:TextBox>
                        </li>
                        <li class="info_detail" style="border: none;"><span class="sp_info_detai"><span style="font-size: 9px;
                            padding-right: 5px;"></span></span><span class="cl_sp" style="padding-right: 10px;">
                            </span><span class="info_result" style="margin-right: 20px;"></span>
                            <asp:Button ID="btn" runat="server" Text="<%$ Resources:Language, vGuiDH%>" OnClick="btn_Click" CssClass="button button3" />
                            <asp:Button ID="btnHuy" runat="server" Text="<%$ Resources:Language, vHuyDH%>" OnClick="btnHuy_Click" CssClass="button" />
                        </li>
                        <!--END DIV gender-->
                    </ul>
                </div>
                <div class="dTTTT">
                    <asp:Label runat="server" ID="lblThongTinThanhToan" Text=""></asp:Label>
                </div>
                <cc:CalendarExtender runat="server" ID="celander1" TargetControlID="txtNgayGiaoHang"
                    Format="dd/MM/yyyy">
                </cc:CalendarExtender>
            </div>
        </div>
    </div>
</asp:Content>
